<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="common/header.jsp"%>



<div class="x_panel">
	<div class="x_title">
		<h3>历史版本信息</h3>
		<div class="clearfix"></div>
	</div>
	<div class="x_content">
		<div id="datatable_wrapper"
			class="dataTables_wrapper form-inline dt-bootstrap no-footer">
			<div class="row">
				<div class="col-sm-6"></div>
			</div>
			<div class="row">
				<div class="col-sm-12">
					<table id="datatable"
						class="table table-striped table-bordered dataTable no-footer"
						role="grid" aria-describedby="datatable_info">
						<thead>
							<tr role="row">
								<th class="sorting_asc" tabindex="0" aria-controls="datatable"
									rowspan="1" colspan="1" style="width: 154px;"
									aria-sort="ascending"
									aria-label="Name: activate to sort column descending">软件名称</th>
								<th class="sorting" tabindex="0" aria-controls="datatable"
									rowspan="1" colspan="1" style="width: 250px;"
									aria-label="Position: activate to sort column ascending">版本号</th>
								<th class="sorting" tabindex="0" aria-controls="datatable"
									rowspan="1" colspan="1" style="width: 154px;"
									aria-label="Office: activate to sort column ascending">版本大小(单位:M)</th>
								<th class="sorting" tabindex="0" aria-controls="datatable"
									rowspan="1" colspan="1" style="width: 154px;"
									aria-label="Age: activate to sort column ascending">发布状态</th>
								<th class="sorting" tabindex="0" aria-controls="datatable"
									rowspan="1" colspan="1" style="width: 250px;"
									aria-label="Start date: activate to sort column ascending">apk下载</th>
								<th class="sorting" tabindex="0" aria-controls="datatable"
									rowspan="1" colspan="1" style="width: 154px;"
									aria-label="Salary: activate to sort column ascending">最新更新时间</th>
							</tr>
						</thead>


						<tbody>
						  <c:forEach items="${appVersionList }" var="appVersion">
							<tr role="row" class="even">
								<td>${appVersion.softwarename }</td>
								<td>${appVersion.versionno }</td>
								<td>${appVersion.versionsize }</td>
								<td>${appVersion.publishStatusName }</td>
								<td><a href="${appVersion.downloadlink }">${appVersion.apkfilename }</a></td>
								<td>
									<fmt:formatDate value="${appVersion.modifydate }" pattern="yyyy-MM-dd"/>
								</td>
							</tr>
							</c:forEach>	
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
  </div>
	<!-- ====================================================================================== -->
	
	<div class="x_panel">
    <div class="x_title">
      <h2>新增版本信息</h2>
      <div class="clearfix"></div>
    </div>
    <div class="x_content">
      <br>
      <form action="${pageContext.request.contextPath }/devApp/appVersionAdd" method="post" enctype="multipart/form-data" id="demo-form2" data-parsley-validate="" class="form-horizontal form-label-left" novalidate="">
		<input type="hidden" name="appid" value="${appId }" />
        
        <div class="form-group">
          <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">版本号 <span class="required">*</span>
          </label>
          <div class="col-md-6 col-sm-6 col-xs-12">
            <input id="first-name" name="versionno" placeholder="请输入版本号" required="required" class="form-control col-md-7 col-xs-12" type="text">
          </div>
        </div>
        
        <div class="form-group">
          <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">版本大小 <span class="required">*</span>
          </label>
          <div class="col-md-6 col-sm-6 col-xs-12">
            <input id="first-name" name="versionsize" placeholder="请输入版本大小" required="required" class="form-control col-md-7 col-xs-12" type="number">
          </div>
        </div>
        
        <div class="form-group">
          <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">发布状态  <span class="required">*</span>
          </label>
          <div class="col-md-6 col-sm-6 col-xs-12">
            <input  class="form-control col-md-7 col-xs-12" value="预发布" type="text" readonly="readonly">
            <input type="hidden" name="publishstatus" value="3">
          </div>
        </div>
        
        
        
         <div class="form-group">
          <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">版本简介 <span class="required">*</span>
          </label>
          <div class="col-md-6 col-sm-6 col-xs-12">
          	<textarea class="form-control col-md-7 col-xs-12" name="appinfo" placeholder="输入版本简介"></textarea>
          </div>
        </div>
        
        
        <div class="form-group">
          <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">apk文件 <span class="required">*</span>
          </label>
          <div class="col-md-6 col-sm-6 col-xs-12">
          	<input class="form-control col-md-7 col-xs-12" type="file" name="apkFile">
          </div>
        </div>
        
        
        
        
        
        
        <div class="ln_solid"></div>
        <div class="form-group">
          <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
            <button type="submit" class="btn btn-primary">添加APP版本信息</button>
            <span style="color:red">${addVersionInfo}</span>
          </div>
        </div>

      </form>
    </div>
  </div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	









<%@include file="common/footer.jsp"%>